package com.xykj.deploy.host.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xykj.deploy.host.entity.Host;
import org.apache.ibatis.annotations.Select;

/**
 * @Description: 主机表
 * @Author: jeecg-boot
 * @Date:   2024-11-30
 * @Version: V1.0
 */
public interface HostMapper extends BaseMapper<Host> {

    @Select("SELECT * FROM host WHERE host_ip = #{hostIp} LIMIT 1;")
    Host getByIp(String hostIp);
}
